-- GENERATED SPELL FOR [Death Knight Master] --


function spell0_29738(pUnit, Event) --@Blood Presence,Self--
pUnit:FullCastSpellOnTarget(50689,pUnit)
pUnit:RegisterEvent('Sorts_29738', 623, 1)
end

function spell1_29738(pUnit, Event) --@Plague Strike,n/a--
pUnit:FullCastSpellOnTarget(50688,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29738', 12000, 1)
end

function Sorts_29738(pUnit, Event)
local choix_sorts_29738 = math.random(0, 1)
if choix_sorts_29738 == 0 then
pUnit:RegisterEvent('spell0_29738', 1, 1)
end
if choix_sorts_29738 == 1 then
pUnit:RegisterEvent('spell1_29738', 1, 1)
end
end

function mob29738_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29738', math.random(1500, 3000), 1)
end

function mob29738_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29738_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29738_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29738, 1, 'mob29738_Action')
RegisterUnitEvent(29738, 2, 'mob29738_Leave')
RegisterUnitEvent(29738, 3, 'mob29738_Kill')
RegisterUnitEvent(29738, 4, 'mob29738_Die')
